package com.avic.map.common.model;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * 定位信息
 **/
@Data
@Accessors(chain = true)
@Slf4j
public class GpsCarModel implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 目标对象
     */
    private Target target;

    /**
     * 纬度标识</
     */
    private String latns;

    /**
     * 经度标识</
     */
    private String longwe;

    /**
     * 方向</
     */
    private double direction;

    /**
     * >维度
     */
    private double latitude;

    /**
     * 经度</
     */
    private double longitude;

    private Gcj gcj;

    @Data
    @Accessors(chain = true)
    public static class Target {

        /**
         * >目标号码
         */
        private String number;

        /**
         * 目标号码类型
         */
        @JsonProperty("number_type")
        private String numberType;
    }


    @Data
    @Accessors(chain = true)
    public static class Gcj {

        /**
         * >目标号码
         */
        private double wgLat;

        /**
         * 目标号码类型
         */
        private double wgLon;
    }

    private long dateTime;

    /**
     * 地面速度</
     */
    private double speed;
}
